Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

kill: Don't return an error if container state is 'created' #245

Merged
merged 1 commit into from
Jun 27, 2017

Conversation

sboeuf
Copy link
Contributor

@sboeuf sboeuf commented Jun 23, 2017

Regarding a recent update of the OCI specification, we don't want to generate an error when 'kill' command is called on a container which has been created but not started.

This is basically a no-op in our case.

@sboeuf
Copy link
Contributor Author

sboeuf commented Jun 23, 2017

This PR refers to opencontainers/runtime-spec#875

@coveralls
Copy link

coveralls commented Jun 23, 2017

Coverage Status

Coverage decreased (-0.08%) to 47.083% when pulling 01df368 on sboeuf/fix_kill into 2c431f7 on master.

kill.go Outdated
if status.State.State != vc.StateRunning {
// container MUST be created or running
if status.State.State == vc.StateReady {
ccLog.Infof("Container state 'created', nothing to do")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which container?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated :)

@jodh-intel
Copy link
Contributor

jodh-intel commented Jun 26, 2017

lgtm

Approved with PullApprove Approved with PullApprove

@coveralls
Copy link

coveralls commented Jun 26, 2017

Coverage Status

Coverage decreased (-0.08%) to 47.083% when pulling bcba230 on sboeuf/fix_kill into 2c431f7 on master.

@amshinde
Copy link
Contributor

amshinde commented Jun 26, 2017

lgtm

Approved with PullApprove

@coveralls
Copy link

coveralls commented Jun 27, 2017

Coverage Status

Coverage decreased (-0.08%) to 47.664% when pulling c19e8fa on sboeuf/fix_kill into 9c2b909 on master.

Regarding a recent update of the OCI specification, we don't want to
generate an error when 'kill' command is called on a container which
has been created but not started.

This is basically a no-op in our case.

Signed-off-by: Sebastien Boeuf <[email protected]>
@coveralls
Copy link

coveralls commented Jun 27, 2017

Coverage Status

Coverage decreased (-0.08%) to 47.664% when pulling 780f52d on sboeuf/fix_kill into 157d907 on master.

@sboeuf sboeuf merged commit 4ffb2c4 into master Jun 27, 2017
@sboeuf sboeuf deleted the sboeuf/fix_kill branch June 27, 2017 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants